// To parse this JSON data, do
//
//     final czh = czhFromJson(jsonString);

// ignore_for_file: non_constant_identifier_names

import 'dart:convert';

List<Cabinet> cabinetFromJson(String str) =>
    List<Cabinet>.from(json.decode(str).map((x) => Cabinet.fromJson(x)));

String cabinetToJson(List<Cabinet> data) =>
    json.encode(List<dynamic>.from(data.map((x) => x.toJson())));

class Cabinet {
  String id;
  int BlId;
  String DeviceId;
  int mainboardno;
  int lockno;
  String czh;
  bool occupied;
  bool is400AF;

  Cabinet({
    required this.id,
    required this.BlId,
    required this.DeviceId,
    required this.mainboardno,
    required this.lockno,
    required this.czh,
    required this.occupied,
    required this.is400AF,
  });

  factory Cabinet.fromJson(Map<String, dynamic> json) => Cabinet(
        id: json["id"],
        BlId: json["BlId"],
        DeviceId: json["DeviceId"],
        mainboardno: json["mainboardno"],
        lockno: json["lockno"],
        czh: json["czh"],
        occupied: json["occupied"],
        is400AF: json["is400AF"],
      );

  Map<String, dynamic> toJson() => {
        "id": id,
        "BlId": BlId,
        "DeviceId": DeviceId,
        "mainboardno": mainboardno,
        "lockno": lockno,
        "czh": czh,
        "occupied": occupied,
        "is400AF": is400AF,
      };
}
